Skip to content

Fix unused exception parameter compile error in RCTUIManager catch block#55064

Closed
yannickl wants to merge 1 commit into
react:mainfrom
yannickl:export-D90192993
Closed

Fix unused exception parameter compile error in RCTUIManager catch block#55064
yannickl wants to merge 1 commit into
react:mainfrom
yannickl:export-D90192993

Conversation

@yannickl

@yannickl yannickl commented Jan 6, 2026

Copy link
Copy Markdown
Contributor

Summary:
In some configurations the errors might be stripped out and leading toward those kind of issues:

stderr:

xplat/js/react-native-github/packages/react-native/React/Modules/RCTUIManager.mm:1251:28: error: unused exception parameter 'exception' [-Werror,-Wunused-exception-parameter]

 1251 |     } catch (NSException \*exception) {

      |                            ^\~\~\~\~\~\~\~\~

1 error generated.

So marking the param as potentially unused.

Reviewed By: lodhaayush

Differential Revision: D90192993

Summary:
In some configurations the errors might be stripped out and leading toward those kind of issues:

```
stderr:

xplat/js/react-native-github/packages/react-native/React/Modules/RCTUIManager.mm:1251:28: error: unused exception parameter 'exception' [-Werror,-Wunused-exception-parameter]

 1251 |     } catch (NSException \*exception) {

      |                            ^\~\~\~\~\~\~\~\~

1 error generated.
```

So marking the param as potentially unused.

Reviewed By: lodhaayush

Differential Revision: D90192993
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 6, 2026
@meta-codesync

meta-codesync Bot commented Jan 6, 2026

Copy link
Copy Markdown

@yannickl has exported this pull request. If you are a Meta employee, you can view the originating Diff in D90192993.

@react-native-bot

Copy link
Copy Markdown
Collaborator

Closing as this has been merged in 58bc6c3

@react-native-bot react-native-bot added the Merged This PR has been merged. label Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants